package View.animation;

import javax.swing.*;
import java.awt.*;

public class MovingItem {

    private Image image = new ImageIcon("/your/path/to/letter-a.png").getImage();
    private int xVelocity;
    private int yVelocity;
    private int x;
    private int y;

    public MovingItem(int xVelocity, int yVelocity, int x, int y) {
        this.xVelocity = xVelocity;
        this.yVelocity = yVelocity;
        this.x = x;
        this.y = y;
    }

    public void move() {
        x += xVelocity;
        y += yVelocity;
    }

    public Image getImage() {
        return image;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }
}
